package com.zkingsoft.dao;

import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
import com.matrix.core.pojo.PaginationVO;
import com.zkingsoft.bean.BizMaterial;

/**
 * @description (素材)
 * @author 姜友瑶
 * @date 2018-07-18 07:20
 */
public interface BizMaterialDao{

	public int insert(@Param("item") BizMaterial bizMaterial);
   	
   	public int batchInsert(@Param("list") List<BizMaterial> bizMaterialList);
   	
	public int updateByMap(Map<String, Object> modifyMap);
	
	public int updateByModel(@Param("record")BizMaterial bizMaterial);
	
	public int deleteByIds(@Param("list") List<String> list);
	
	public int deleteById(String id);

	public int deleteByModel(@Param("record") BizMaterial bizMaterial);
	
	public List<BizMaterial> selectInPage(@Param("record") BizMaterial bizMaterial, @Param("pageVo") PaginationVO pageVo);

	public List<BizMaterial> selectByModel(@Param("record") BizMaterial bizMaterial);
	
	public int selectTotalRecord(@Param("record") BizMaterial bizMaterial);
	
	public BizMaterial  selectById(String id);
	
	public BizMaterial  selectForUpdate(String id);

	/**
	 * 前端分页查询
	 * @author JIANGYOUYAO
	 * @email 935090232@qq.com
	 * @date 2018年7月18日
	 * @param bizMaterial
	 * @return
	 */
	public List<BizMaterial> selectInPageFront(@Param("record") BizMaterial bizMaterial);
	
}